<script>


export default {
  name: "App",
  mounted() {
    // --el-table-border-color
    //退出登录后会把localStorage清空，避免控制台报错
    if (JSON.parse(localStorage.getItem('user'))) {
      let userId = JSON.parse(localStorage.getItem('user')).id
      if (userId) {
        this.$store
                .dispatch("utils/getUserInfo", { initSocket: true })
                .then(() => {
                });
      }
    } else {
    }
  },

};
</script>

<template>
  <div id="app">
    <link rel="stylesheet" href="https://at.alicdn.com/t/c/font_4634236_jbtn6hizc5m.css">
    <RouterView />
  </div>

</template>

<style>
#app{
  background: center url('/bgbody.png');
  height: 100vh !important;
  padding: 0;
  margin: 0;
  color: var(--el-menu-text-color);
  width: 100%;
}


</style>
